﻿using System;
using System.Linq;
using Medianamik.UI.Controls;

namespace Medianamik.UI.Web.MasterPages
{
    public partial class MedianamikModule : BaseMasterPage
	{
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!Page.CurrentPage.IsLanguageNeutral && !RemoveLanguagePicker 
                && Page.EditionCultures.Count() > 0)
            {
                phrLanguagePicker.Controls.Add(new LanguagePicker());
            }
        }
	}
}
